﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Free.Master" Inherits="System.Web.Mvc.ViewPage<Pp.UI.Models.ProjectEditViewModel>" %>

<%@ Import Namespace="Pp.UI.Models" %>
<%@ Import Namespace="Pp.Dto" %>
<%@ Import Namespace="Pp.Globalization" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%Html.RenderPartial("FormValidateControlScripts"); %>
    <h2>
        <%=Res.Title_Project_Edit%></h2>
    <% using (Html.BeginForm())
       { %>
    <%: Html.ValidationSummary(true) %>
    <%=Html.TextBox<ProjectEdit>(d=>d.Name,Res.Label_Project_Name ,Model.ProjectDto.Name)%>
    <%=Html.TextArea<ProjectEdit>(d => d.SmallDescription,Res.Label_Project_Short_Descaription ,Model.ProjectDto.SmallDescription)%>
    <%=Html.TextArea<ProjectEdit>(d => d.Description, Res.Label_Project_Slide , Server.HtmlDecode(Model.ProjectDto.Description))%>
    <%=Html.TextBox<ProjectEdit>(d => d.ProjectCosting, Res.Label_Project_Cost+" 'TL' " , Model.ProjectDto.ProjectCosting)%>
    <%=Html.CheckBox<ProjectEdit>(d => d.AllowAllowRequest, Res.Label_Accept_Angel ,Model.ProjectDto.AllowAllowRequest,Res.Label_Allow, Res.Label_Disallow)%>
    <%=Html.FileUploader<ProjectCreate>(d => d.ImageFile, Res.Label_Proje_Img_Browse,UploadType.Image)%>
    <p>
        <%=Res.Label_SignatureCollectMessage %>
    </p>
    <%=Html.TextBox<ProjectEdit>(d => d.SignatureCollect, Res.Label_SignatureCollect,Model.ProjectDto.SignatureCollect)%>
    <%=Html.DropDownList<ProjectEdit>(d => d.CategoryId, Res.Title_Categories, Model.Categories, Res.Label_Chooice)%>
    <%=Html.Submit(Res.Label_Edit,false) %>
    <% } %>
    <script>
        bkLib.onDomLoaded(function () {
            var a = new nicEditor().panelInstance('Description');
            if (navigator.appName == "Netscape") {
                $(".nicEdit-main").parent().css("margin-left", "150px");
            }
        });
    </script>
</asp:Content>
